home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / PID / rtpidx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-29  |  6.3 KB  |  184 lines

  1. #if !defined(AFX_RTPIDX_H__6182BB38_8033_11D1_A956_00C0F6A06F60__INCLUDED_)
  2. #define AFX_RTPIDX_H__6182BB38_8033_11D1_A956_00C0F6A06F60__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  8.  
  9. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  10. //  Microsoft Visual C++, your modifications will be overwritten.
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CRTPIDX wrapper class
  14.  
  15. class CRTPIDX : public CWnd
  16. {
  17. protected:
  18.     DECLARE_DYNCREATE(CRTPIDX)
  19. public:
  20.     CLSID const& GetClsid()
  21.     {
  22.         static CLSID const clsid
  23.             = { 0x169f6e66, 0xe3d9, 0x11d0, { 0xa9, 0x56, 0x0, 0xc0, 0xf6, 0xa0, 0x6f, 0x60 } };
  24.         return clsid;
  25.     }
  26.     virtual BOOL Create(LPCTSTR lpszClassName,
  27.         LPCTSTR lpszWindowName, DWORD dwStyle,
  28.         const RECT& rect,
  29.         CWnd* pParentWnd, UINT nID,
  30.         CCreateContext* pContext = NULL)
  31.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  32.  
  33.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  34.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  35.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  36.         BSTR bstrLicKey = NULL)
  37.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  38.         pPersist, bStorage, bstrLicKey); }
  39.  
  40. // Attributes
  41. public:
  42.     long GetWindowBackgroundColor();
  43.     void SetWindowBackgroundColor(long);
  44.     long GetWindowBorderColor();
  45.     void SetWindowBorderColor(long);
  46.     long GetPlotBackgroundColor();
  47.     void SetPlotBackgroundColor(long);
  48.     long GetWindowBorderStyle();
  49.     void SetWindowBorderStyle(long);
  50.     double GetTopPlotArea();
  51.     void SetTopPlotArea(double);
  52.     double GetRightPlotArea();
  53.     void SetRightPlotArea(double);
  54.     double GetLeftPlotArea();
  55.     void SetLeftPlotArea(double);
  56.     long GetWindowResizeMode();
  57.     void SetWindowResizeMode(long);
  58.     long GetWindowBorderThickness();
  59.     void SetWindowBorderThickness(long);
  60.     double GetBottomPlotArea();
  61.     void SetBottomPlotArea(double);
  62.     BOOL GetBarAutoPosition();
  63.     void SetBarAutoPosition(BOOL);
  64.     double GetPIDDerivGain();
  65.     void SetPIDDerivGain(double);
  66.     double GetPIDFilterConstant();
  67.     void SetPIDFilterConstant(double);
  68.     double GetPIDInputHighValue();
  69.     void SetPIDInputHighValue(double);
  70.     double GetPIDInputLowValue();
  71.     void SetPIDInputLowValue(double);
  72.     double GetPIDIntegralGain();
  73.     void SetPIDIntegralGain(double);
  74.     double GetPIDOutputHighClamp();
  75.     void SetPIDOutputHighClamp(double);
  76.     double GetPIDOutputHighValue();
  77.     void SetPIDOutputHighValue(double);
  78.     double GetPIDOutputLowClamp();
  79.     void SetPIDOutputLowClamp(double);
  80.     double GetPIDOutputLowValue();
  81.     void SetPIDOutputLowValue(double);
  82.     double GetPIDOutputRateClamp();
  83.     void SetPIDOutputRateClamp(double);
  84.     double GetPIDOutputSteadyState();
  85.     void SetPIDOutputSteadyState(double);
  86.     double GetPIDSamplePeriod();
  87.     void SetPIDSamplePeriod(double);
  88.     double GetPIDSetpoint();
  89.     void SetPIDSetpoint(double);
  90.     double GetPIDPropGain();
  91.     void SetPIDPropGain(double);
  92.     BOOL GetPIDInvertedOutput();
  93.     void SetPIDInvertedOutput(BOOL);
  94.     CString GetPIDLabelsFont();
  95.     void SetPIDLabelsFont(LPCTSTR);
  96.     long GetPIDLabelsSize();
  97.     void SetPIDLabelsSize(long);
  98.     long GetPIDLabelsFontStyle();
  99.     void SetPIDLabelsFontStyle(long);
  100.     CString GetPIDAutoString();
  101.     void SetPIDAutoString(LPCTSTR);
  102.     CString GetPIDManualString();
  103.     void SetPIDManualString(LPCTSTR);
  104.     CString GetPIDNormalString();
  105.     void SetPIDNormalString(LPCTSTR);
  106.     double GetPIDInputCenterValue();
  107.     void SetPIDInputCenterValue(double);
  108.     long GetPIDInputPrecision();
  109.     void SetPIDInputPrecision(long);
  110.     double GetPIDOutputCenterValue();
  111.     void SetPIDOutputCenterValue(double);
  112.     long GetPIDOutputPrecision();
  113.     void SetPIDOutputPrecision(long);
  114.     CString GetPIDInputUnits();
  115.     void SetPIDInputUnits(LPCTSTR);
  116.     long GetPIDLabelsColor();
  117.     void SetPIDLabelsColor(long);
  118.     CString GetPIDOutputUnits();
  119.     void SetPIDOutputUnits(LPCTSTR);
  120.     BOOL GetPIDBargraphEnable();
  121.     void SetPIDBargraphEnable(BOOL);
  122.     double GetPIDManualOutputValue();
  123.     void SetPIDManualOutputValue(double);
  124.     long GetPIDNormalAlarmColor();
  125.     void SetPIDNormalAlarmColor(long);
  126.     long GetPIDLowAlarmColor();
  127.     void SetPIDLowAlarmColor(long);
  128.     long GetPIDHighAlarmColor();
  129.     void SetPIDHighAlarmColor(long);
  130.     BOOL GetPIDAlarmMessageEnable();
  131.     void SetPIDAlarmMessageEnable(BOOL);
  132.     CString GetPIDHighAlarmString();
  133.     void SetPIDHighAlarmString(LPCTSTR);
  134.     double GetPIDHighAlarmValue();
  135.     void SetPIDHighAlarmValue(double);
  136.     CString GetPIDLowAlarmString();
  137.     void SetPIDLowAlarmString(LPCTSTR);
  138.     double GetPIDLowAlarmValue();
  139.     void SetPIDLowAlarmValue(double);
  140.     CString GetPIDNormalAlarmString();
  141.     void SetPIDNormalAlarmString(LPCTSTR);
  142.     double GetPIDInputValue();
  143.     void SetPIDInputValue(double);
  144.     double GetPIDOutputValue();
  145.     void SetPIDOutputValue(double);
  146.     BOOL GetEnableInternalTimer();
  147.     void SetEnableInternalTimer(BOOL);
  148.     double GetTimerFrequency();
  149.     void SetTimerFrequency(double);
  150.     BOOL GetSDataSimulationMode();
  151.     void SetSDataSimulationMode(BOOL);
  152.  
  153. // Operations
  154. public:
  155.     CString GetTitleString(long title);
  156.     void SetTitleString(long title, LPCTSTR lpszNewValue);
  157.     CString GetTitleFont(long title);
  158.     void SetTitleFont(long title, LPCTSTR lpszNewValue);
  159.     long GetTitleColor(long title);
  160.     void SetTitleColor(long title, long nNewValue);
  161.     long GetTitleFontStyle(long title);
  162.     void SetTitleFontStyle(long title, long nNewValue);
  163.     long GetTitleFontSize(long title);
  164.     void SetTitleFontSize(long title, long nNewValue);
  165.     long GetPIDChannelColor(long nChannel);
  166.     void SetPIDChannelColor(long nChannel, long nNewValue);
  167.     CString GetPIDTagName(long nChannel);
  168.     void SetPIDTagName(long nChannel, LPCTSTR lpszNewValue);
  169.     double CalcPID(double rInput);
  170.     double GetPIDChannelInitialValue(long nChannel);
  171.     void SetPIDChannelInitialValue(long nChannel, double newValue);
  172.     void UpdatePIDBargraph(double rInputValue, double rSetpoint, double rOutputValue);
  173.     BOOL SerializeLoadFile(LPCTSTR sFilename);
  174.     BOOL SerializeSaveFile(LPCTSTR sFilename);
  175.     BOOL CopyToClipboard();
  176.     BOOL SavePageMeta(long mftype, LPCTSTR sFilename);
  177.     void AboutBox();
  178. };
  179.  
  180. //{{AFX_INSERT_LOCATION}}
  181. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  182.  
  183. #endif // !defined(AFX_RTPIDX_H__6182BB38_8033_11D1_A956_00C0F6A06F60__INCLUDED_)
  184.